\(\int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx\) [202]

   Optimal result
   Rubi [A] (verified)
   Mathematica [B] (warning: unable to verify)
   Maple [B] (verified)
   Fricas [F]
   Sympy [F]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 25, antiderivative size = 442 \[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=-\frac {2 (a-b) \sqrt {a+b} \left (35 a b c+23 a^2 d+9 b^2 d\right ) \cot (e+f x) E\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{15 b f}+\frac {2 \sqrt {a+b} \left (a^2 b (45 c-23 d)-a b^2 (35 c-17 d)+b^3 (5 c-9 d)+15 a^3 d\right ) \cot (e+f x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{15 b f}-\frac {2 a^2 \sqrt {a+b} c \cot (e+f x) \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{f}+\frac {2 b (5 b c+8 a d) \sqrt {a+b \sec (e+f x)} \tan (e+f x)}{15 f}+\frac {2 b d (a+b \sec (e+f x))^{3/2} \tan (e+f x)}{5 f} \]

[Out]

-2/15*(a-b)*(23*a^2*d+35*a*b*c+9*b^2*d)*cot(f*x+e)*EllipticE((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^
(1/2))*(a+b)^(1/2)*(b*(1-sec(f*x+e))/(a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/b/f+2/15*(a^2*b*(45*c-23*d)-
a*b^2*(35*c-17*d)+b^3*(5*c-9*d)+15*a^3*d)*cot(f*x+e)*EllipticF((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),((a+b)/(a-b)
)^(1/2))*(a+b)^(1/2)*(b*(1-sec(f*x+e))/(a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/b/f-2*a^2*c*cot(f*x+e)*Ell
ipticPi((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),(a+b)/a,((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(f*x+e))/(a+b))^(
1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/f+2/5*b*d*(a+b*sec(f*x+e))^(3/2)*tan(f*x+e)/f+2/15*b*(8*a*d+5*b*c)*(a+b*s
ec(f*x+e))^(1/2)*tan(f*x+e)/f

Rubi [A] (verified)

Time = 0.77 (sec) , antiderivative size = 442, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {4003, 4141, 4143, 4006, 3869, 3917, 4089} \[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=-\frac {2 (a-b) \sqrt {a+b} \left (23 a^2 d+35 a b c+9 b^2 d\right ) \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} E\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{15 b f}-\frac {2 a^2 c \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{f}+\frac {2 \sqrt {a+b} \left (15 a^3 d+a^2 b (45 c-23 d)-a b^2 (35 c-17 d)+b^3 (5 c-9 d)\right ) \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{15 b f}+\frac {2 b (8 a d+5 b c) \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{15 f}+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f} \]

[In]

Int[(a + b*Sec[e + f*x])^(5/2)*(c + d*Sec[e + f*x]),x]

[Out]

(-2*(a - b)*Sqrt[a + b]*(35*a*b*c + 23*a^2*d + 9*b^2*d)*Cot[e + f*x]*EllipticE[ArcSin[Sqrt[a + b*Sec[e + f*x]]
/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/
(15*b*f) + (2*Sqrt[a + b]*(a^2*b*(45*c - 23*d) - a*b^2*(35*c - 17*d) + b^3*(5*c - 9*d) + 15*a^3*d)*Cot[e + f*x
]*EllipticF[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f*x]))/(a + b)
]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/(15*b*f) - (2*a^2*Sqrt[a + b]*c*Cot[e + f*x]*EllipticPi[(a + b)/a,
ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f*x]))/(a + b)]*Sqrt[-((b*
(1 + Sec[e + f*x]))/(a - b))])/f + (2*b*(5*b*c + 8*a*d)*Sqrt[a + b*Sec[e + f*x]]*Tan[e + f*x])/(15*f) + (2*b*d
*(a + b*Sec[e + f*x])^(3/2)*Tan[e + f*x])/(5*f)

Rule 3869

Int[1/Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[2*(Rt[a + b, 2]/(a*d*Cot[c + d*x]))*Sqrt[b
*((1 - Csc[c + d*x])/(a + b))]*Sqrt[(-b)*((1 + Csc[c + d*x])/(a - b))]*EllipticPi[(a + b)/a, ArcSin[Sqrt[a + b
*Csc[c + d*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0]

Rule 3917

Int[csc[(e_.) + (f_.)*(x_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[-2*(Rt[a + b, 2]/(b*
f*Cot[e + f*x]))*Sqrt[(b*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[(-b)*((1 + Csc[e + f*x])/(a - b))]*EllipticF[ArcSin
[Sqrt[a + b*Csc[e + f*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, e, f}, x] && NeQ[a^2 - b^2, 0]

Rule 4003

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_)), x_Symbol] :> Simp[(-b)
*d*Cot[e + f*x]*((a + b*Csc[e + f*x])^(m - 1)/(f*m)), x] + Dist[1/m, Int[(a + b*Csc[e + f*x])^(m - 2)*Simp[a^2
*c*m + (b^2*d*(m - 1) + 2*a*b*c*m + a^2*d*m)*Csc[e + f*x] + b*(b*c*m + a*d*(2*m - 1))*Csc[e + f*x]^2, x], x],
x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && GtQ[m, 1] && NeQ[a^2 - b^2, 0] && IntegerQ[2*m]

Rule 4006

Int[(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[c, In
t[1/Sqrt[a + b*Csc[e + f*x]], x], x] + Dist[d, Int[Csc[e + f*x]/Sqrt[a + b*Csc[e + f*x]], x], x] /; FreeQ[{a,
b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]

Rule 4089

Int[(csc[(e_.) + (f_.)*(x_)]*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)
], x_Symbol] :> Simp[-2*(A*b - a*B)*Rt[a + b*(B/A), 2]*Sqrt[b*((1 - Csc[e + f*x])/(a + b))]*(Sqrt[(-b)*((1 + C
sc[e + f*x])/(a - b))]/(b^2*f*Cot[e + f*x]))*EllipticE[ArcSin[Sqrt[a + b*Csc[e + f*x]]/Rt[a + b*(B/A), 2]], (a
*A + b*B)/(a*A - b*B)], x] /; FreeQ[{a, b, e, f, A, B}, x] && NeQ[a^2 - b^2, 0] && EqQ[A^2 - B^2, 0]

Rule 4141

Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))*(csc[(e_.) + (f_.)*(x_)]*(b_.) +
 (a_))^(m_.), x_Symbol] :> Simp[(-C)*Cot[e + f*x]*((a + b*Csc[e + f*x])^m/(f*(m + 1))), x] + Dist[1/(m + 1), I
nt[(a + b*Csc[e + f*x])^(m - 1)*Simp[a*A*(m + 1) + ((A*b + a*B)*(m + 1) + b*C*m)*Csc[e + f*x] + (b*B*(m + 1) +
 a*C*m)*Csc[e + f*x]^2, x], x], x] /; FreeQ[{a, b, e, f, A, B, C}, x] && NeQ[a^2 - b^2, 0] && IGtQ[2*m, 0]

Rule 4143

Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_
.) + (a_)], x_Symbol] :> Int[(A + (B - C)*Csc[e + f*x])/Sqrt[a + b*Csc[e + f*x]], x] + Dist[C, Int[Csc[e + f*x
]*((1 + Csc[e + f*x])/Sqrt[a + b*Csc[e + f*x]]), x], x] /; FreeQ[{a, b, e, f, A, B, C}, x] && NeQ[a^2 - b^2, 0
]

Rubi steps \begin{align*} \text {integral}& = \frac {2 b d (a+b \sec (e+f x))^{3/2} \tan (e+f x)}{5 f}+\frac {2}{5} \int \sqrt {a+b \sec (e+f x)} \left (\frac {5 a^2 c}{2}+\frac {1}{2} \left (10 a b c+5 a^2 d+3 b^2 d\right ) \sec (e+f x)+\frac {1}{2} b (5 b c+8 a d) \sec ^2(e+f x)\right ) \, dx \\ & = \frac {2 b (5 b c+8 a d) \sqrt {a+b \sec (e+f x)} \tan (e+f x)}{15 f}+\frac {2 b d (a+b \sec (e+f x))^{3/2} \tan (e+f x)}{5 f}+\frac {4}{15} \int \frac {\frac {15 a^3 c}{4}+\frac {1}{4} \left (45 a^2 b c+5 b^3 c+15 a^3 d+17 a b^2 d\right ) \sec (e+f x)+\frac {1}{4} b \left (35 a b c+23 a^2 d+9 b^2 d\right ) \sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx \\ & = \frac {2 b (5 b c+8 a d) \sqrt {a+b \sec (e+f x)} \tan (e+f x)}{15 f}+\frac {2 b d (a+b \sec (e+f x))^{3/2} \tan (e+f x)}{5 f}+\frac {4}{15} \int \frac {\frac {15 a^3 c}{4}+\left (-\frac {1}{4} b \left (35 a b c+23 a^2 d+9 b^2 d\right )+\frac {1}{4} \left (45 a^2 b c+5 b^3 c+15 a^3 d+17 a b^2 d\right )\right ) \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx+\frac {1}{15} \left (b \left (35 a b c+23 a^2 d+9 b^2 d\right )\right ) \int \frac {\sec (e+f x) (1+\sec (e+f x))}{\sqrt {a+b \sec (e+f x)}} \, dx \\ & = -\frac {2 (a-b) \sqrt {a+b} \left (35 a b c+23 a^2 d+9 b^2 d\right ) \cot (e+f x) E\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{15 b f}+\frac {2 b (5 b c+8 a d) \sqrt {a+b \sec (e+f x)} \tan (e+f x)}{15 f}+\frac {2 b d (a+b \sec (e+f x))^{3/2} \tan (e+f x)}{5 f}+\left (a^3 c\right ) \int \frac {1}{\sqrt {a+b \sec (e+f x)}} \, dx+\frac {1}{15} \left (a^2 b (45 c-23 d)-a b^2 (35 c-17 d)+b^3 (5 c-9 d)+15 a^3 d\right ) \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx \\ & = -\frac {2 (a-b) \sqrt {a+b} \left (35 a b c+23 a^2 d+9 b^2 d\right ) \cot (e+f x) E\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{15 b f}+\frac {2 \sqrt {a+b} \left (a^2 b (45 c-23 d)-a b^2 (35 c-17 d)+b^3 (5 c-9 d)+15 a^3 d\right ) \cot (e+f x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{15 b f}-\frac {2 a^2 \sqrt {a+b} c \cot (e+f x) \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{f}+\frac {2 b (5 b c+8 a d) \sqrt {a+b \sec (e+f x)} \tan (e+f x)}{15 f}+\frac {2 b d (a+b \sec (e+f x))^{3/2} \tan (e+f x)}{5 f} \\ \end{align*}

Mathematica [B] (warning: unable to verify)

Leaf count is larger than twice the leaf count of optimal. \(7138\) vs. \(2(442)=884\).

Time = 26.04 (sec) , antiderivative size = 7138, normalized size of antiderivative = 16.15 \[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\text {Result too large to show} \]

[In]

Integrate[(a + b*Sec[e + f*x])^(5/2)*(c + d*Sec[e + f*x]),x]

[Out]

Result too large to show

Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(4160\) vs. \(2(403)=806\).

Time = 32.02 (sec) , antiderivative size = 4161, normalized size of antiderivative = 9.41

method result size
parts \(\text {Expression too large to display}\) \(4161\)
default \(\text {Expression too large to display}\) \(4180\)

[In]

int((a+b*sec(f*x+e))^(5/2)*(c+d*sec(f*x+e)),x,method=_RETURNVERBOSE)

[Out]

2/3*c/f*(a+b*sec(f*x+e))^(1/2)/(b+a*cos(f*x+e))/(cos(f*x+e)+1)*(-14*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*Elliptic
F(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a*b^2*cos(f*x+e)+
14*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*
x+e))/(cos(f*x+e)+1))^(1/2)*a^2*b*cos(f*x+e)+14*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+
e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a*b^2*cos(f*x+e)-18*(cos(f*x+e)/(cos(
f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1)
)^(1/2)*a^2*b*cos(f*x+e)-2*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/
2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*b^3*cos(f*x+e)+7*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*Ellipti
cE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a^2*b+7*(cos(f*x
+e)/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(
f*x+e)+1))^(1/2)*a*b^2-9*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2)
)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a^2*b-7*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+
e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a*b^2-(cos(f*x+e)/(cos(f*x+
e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1
/2)*b^3-6*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticPi(cot(f*x
+e)-csc(f*x+e),-1,((a-b)/(a+b))^(1/2))*a^3*cos(f*x+e)^2+3*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(
f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a^3*cos(f*x+e)^2-(cos(f*x+e
)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)
/(a+b))^(1/2))*b^3*cos(f*x+e)^2-12*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))
^(1/2)*EllipticPi(cot(f*x+e)-csc(f*x+e),-1,((a-b)/(a+b))^(1/2))*a^3*cos(f*x+e)+6*(cos(f*x+e)/(cos(f*x+e)+1))^(
1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a^3*
cos(f*x+e)+8*a*b^2*sin(f*x+e)+7*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1
/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a^2*b*cos(f*x+e)^2+7*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2
)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a*b^2*c
os(f*x+e)^2-9*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(
f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a^2*b*cos(f*x+e)^2-7*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*co
s(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a*b^2*cos(f*x+e)^2+7*a^2*
b*cos(f*x+e)*sin(f*x+e)-6*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*El
lipticPi(cot(f*x+e)-csc(f*x+e),-1,((a-b)/(a+b))^(1/2))*a^3+3*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*c
os(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a^3+a*b^2*cos(f*x+e)*sin
(f*x+e)+b^3*sin(f*x+e)+b^3*tan(f*x+e))+2/15*d/f*(a+b*sec(f*x+e))^(1/2)/(b+a*cos(f*x+e))/(cos(f*x+e)+1)*(-34*(c
os(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))
/(cos(f*x+e)+1))^(1/2)*a*b^2*cos(f*x+e)+46*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(c
os(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a^2*b*cos(f*x+e)+18*EllipticE(cot(f*x+e)-c
sc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/
2)*a*b^2*cos(f*x+e)-46*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*
(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a^2*b*cos(f*x+e)-18*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*Elliptic
F(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*b^3*cos(f*x+e)+23
*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+
e))/(cos(f*x+e)+1))^(1/2)*a^2*b+9*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+
b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a*b^2-23*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*Elliptic
F(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a^2*b-17*(cos(f*x
+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(
f*x+e)+1))^(1/2)*a*b^2-9*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2)
)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*b^3-15*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f
*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a^3*cos(f*x+e)^2-9*(cos(f*x+
e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b
)/(a+b))^(1/2))*b^3*cos(f*x+e)^2-30*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1)
)^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a^3*cos(f*x+e)+14*a*b^2*sin(f*x+e)+23*(cos(f*x+e)
/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/
(a+b))^(1/2))*a^2*b*cos(f*x+e)^2+9*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))
^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a*b^2*cos(f*x+e)^2-23*(cos(f*x+e)/(cos(f*x+e)+1))^
(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a^2
*b*cos(f*x+e)^2-17*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF
(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a*b^2*cos(f*x+e)^2+14*a*b^2*tan(f*x+e)+23*a^3*cos(f*x+e)*sin(f*x+e
)+3*b^3*sec(f*x+e)*tan(f*x+e)+34*a^2*b*sin(f*x+e)+11*a^2*b*cos(f*x+e)*sin(f*x+e)-15*(cos(f*x+e)/(cos(f*x+e)+1)
)^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a
^3+9*a*b^2*cos(f*x+e)*sin(f*x+e)+23*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1)
)^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a^3+9*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*
(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*b^3+9*b^3*sin(f*x+
e)+3*b^3*tan(f*x+e)+23*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*Ellip
ticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a^3*cos(f*x+e)^2+9*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*
(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*b^3*cos(f*x+e)^2+4
6*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f
*x+e),((a-b)/(a+b))^(1/2))*a^3*cos(f*x+e)+18*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(
f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*b^3*cos(f*x+e))

Fricas [F]

\[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\int { {\left (b \sec \left (f x + e\right ) + a\right )}^{\frac {5}{2}} {\left (d \sec \left (f x + e\right ) + c\right )} \,d x } \]

[In]

integrate((a+b*sec(f*x+e))^(5/2)*(c+d*sec(f*x+e)),x, algorithm="fricas")

[Out]

integral((b^2*d*sec(f*x + e)^3 + a^2*c + (b^2*c + 2*a*b*d)*sec(f*x + e)^2 + (2*a*b*c + a^2*d)*sec(f*x + e))*sq
rt(b*sec(f*x + e) + a), x)

Sympy [F]

\[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\int \left (a + b \sec {\left (e + f x \right )}\right )^{\frac {5}{2}} \left (c + d \sec {\left (e + f x \right )}\right )\, dx \]

[In]

integrate((a+b*sec(f*x+e))**(5/2)*(c+d*sec(f*x+e)),x)

[Out]

Integral((a + b*sec(e + f*x))**(5/2)*(c + d*sec(e + f*x)), x)

Maxima [F]

\[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\int { {\left (b \sec \left (f x + e\right ) + a\right )}^{\frac {5}{2}} {\left (d \sec \left (f x + e\right ) + c\right )} \,d x } \]

[In]

integrate((a+b*sec(f*x+e))^(5/2)*(c+d*sec(f*x+e)),x, algorithm="maxima")

[Out]

integrate((b*sec(f*x + e) + a)^(5/2)*(d*sec(f*x + e) + c), x)

Giac [F]

\[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\int { {\left (b \sec \left (f x + e\right ) + a\right )}^{\frac {5}{2}} {\left (d \sec \left (f x + e\right ) + c\right )} \,d x } \]

[In]

integrate((a+b*sec(f*x+e))^(5/2)*(c+d*sec(f*x+e)),x, algorithm="giac")

[Out]

integrate((b*sec(f*x + e) + a)^(5/2)*(d*sec(f*x + e) + c), x)

Mupad [F(-1)]

Timed out. \[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\int {\left (a+\frac {b}{\cos \left (e+f\,x\right )}\right )}^{5/2}\,\left (c+\frac {d}{\cos \left (e+f\,x\right )}\right ) \,d x \]

[In]

int((a + b/cos(e + f*x))^(5/2)*(c + d/cos(e + f*x)),x)

[Out]

int((a + b/cos(e + f*x))^(5/2)*(c + d/cos(e + f*x)), x)